#ifndef TOPWIDGET_H
#define TOPWIDGET_H

#include <QLabel>
#include <QPushButton>
#include "custombutton.h"

class topwidget : public QWidget
{
    Q_OBJECT
public:
    explicit topwidget(QWidget *parent = 0);
    ~topwidget();
    void initControl();
    void setLayoutWidget();
    void initBackGroundColor();

 public:
    state3tbutton *m_minbtn;
    state3tbutton *m_closebtn;
    bool m_ismax;
    state3tbutton *m_taskinfobtn;
    state3tbutton *m_taskresultbtn;
    state3tbutton *m_dragbtn;
    state3tbutton *m_multilinebtn;

protected:
    void paintEvent(QPaintEvent *e);

signals:
    void setCurrentIndex(int index);

public slots:
    void setShowInfoWidget();
    void setShowResultWidget();
    void setShowDragWidget();
    void setShowMultilineWidget();
};

#endif // TOPWIDGET_H
